|
|
|
|
|
|
|
button to create a set of control points. Click and drag the points in the top and side views, and then click the Draw button to make the program display the corresponding B-spline surface. |
|
|
|
|
|
|
|
|
Surfaces of Transformation |
|
|
|
|
|
|
|
|
Suppose you have a curve. You can transform the curve by translating, rotating, reflecting, scaling, and applying a shape-distorting transformation to it. If you then connect the corresponding points in the original and transformed curves, you will have created a transformation surface. |
|
|
|
|
|
|
|
|
The following two sections describe the most common forms of transformation surfaces: extruded surfaces and surfaces of revolution. These use only a subset of the possible transformations you might apply to a curve. |
|
|
|
|
|
|
|
|
The section after that describes more general surfaces of transformation. Using less restricted forms of transformation, you can create all sorts of surfaces that are interesting and sometimes truly bizarre. |
|
|
|
|
|
|
|
|
Extrusion is the process of forcing a substance through some sort of restricted opening to produce a kind of ribbon. The cross-section of the ribbon has the shape of the opening. Examples of extrusion are forcing toothpaste out of a tube or squeezing frosting through a pastry cone to decorate a cake. By changing the opening in the cone, you can change the cross-section of the frosting ribbons you produce. |
|
|
|
|
|
|
|
|
In three-dimensional graphics, you can perform a similar operation by moving a base curve through space along a generating path. As you move the curve, it sweeps out a three-dimensional surface. This kind of surface is called an extruded surface. The cross-sections of the surface look like the base curve you are moving. This curve corresponds to the opening in the pastry cone. |
|
|
|
|
|
|
|
|
As a simple example, if you move a line segment in a direction perpendicular to it, you will sweep out a rectangle. In this case the cross-sections of the surface are line segments. |
|
|
|
|
|
|
|
|
The simplest extrusions move the base curve along a straight line. Figure 14.29 shows a horizontal rectangle that has been extruded a small distance vertically. The original rectangle is drawn in bold. The line segments connecting corresponding points in the original and transformed curve are drawn in dashed lines. |
|
|
|
|
|
|
|
|
There is no reason the base curve cannot be moved along a longer path or a curved path. After all, as you squeeze a pastry cone, you can move the cone around on the cake. You can also change the base curve much as you can change the opening in the pastry cone. Figure 14.30 shows a semicircle that has been extruded along a curved generating path. Figure 14.31 shows a rectangle that has been extruded along a similar path. |
|
|
|
|
|
|
|
|
If you look carefully at Figures 14.29 through 14.31, you will notice a couple of interesting features of extruded surfaces. First, each of the areas that make up the surface is a |
|
|
|
|
|